import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2024-07-12
 * Time: 21:47
 */
public class Main {
    public static int sum(int a,int b){
        return a+b;
    }
    public static int sub(int a,int b){
        return a-b;
    }
    public static int mul(int a,int b){
        return a*b;
    }
    public static int div(int a,int b){
        return a/b;
    }
    public static void main(String[] args) {

        Scanner scanner=new Scanner(System.in);
        System.out.print("输入:");
        int a=scanner.nextInt();
        String s=scanner.next();
        int b=scanner.nextInt();
        System.out.print("输出：");
        switch(s){
            case "+":
                System.out.println(sum(a,b));;
                break;
            case "-":
                System.out.println(sub(a,b));;
                break;
            case "*":
                System.out.println(mul(a,b));;
                break;
            case "/":
                if(b==0){
                    System.out.println("输入错误!");
                }else{
                    System.out.println(div(a,b));;
                }
                break;
        }
    }
}